const getOpenId = require('./getOpenId/index');
const addPersonalKeyInformation = require('./personalKeyInformation/add/insex');
const selectPersonalKeyInformation = require('./personalKeyInformation/select/insex');
const updatePersonalKeyInformation = require('./personalKeyInformation/update/insex');
const addEvaluation = require('./evaluation/add/insex')
const selectEvaluation = require('./evaluation/select/insex')
const updateEvaluation = require('./evaluation/update/insex')
const addEducation = require('./education/add/insex')
const selectEducation = require('./education/select/insex')
const updateEducation = require('./education/update/insex')
const deleteEducation = require('./education/delete/insex')
const addWorkExperience = require('./workExperience/add/insex')
const selectWorkExperience = require('./workExperience/select/insex')
const updateWorkExperience = require('./workExperience/update/insex')
const deleteWorkExperience = require('./workExperience/delete/insex')
const addProject = require('./project/add/insex')
const selectProject = require('./project/select/insex')
const updateProject = require('./project/update/insex')
const deleteProject = require('./project/delete/insex')
const addQualificationCertificate = require('./qualificationCertificate/add/insex')
const selectQualificationCertificate = require('./qualificationCertificate/select/insex')
const updateQualificationCertificate = require('./qualificationCertificate/update/insex')
const deleteQualificationCertificate = require('./qualificationCertificate/delete/insex')
const selectCreateResume = require('./createResume/index')
const pdf = require('./pdf/index')
const addEvaluating = require('./evaluating/add/insex')
const selectEvaluating = require('./evaluating/select/insex')
const updateEvaluating = require('./evaluating/update/insex')
const selectEvaluatingId = require('./evaluating/select/insex_id')
const addIntroduction = require('./introduction/add/insex')
const selectIntroduction = require('./introduction/select/insex')
const updateIntroduction = require('./introduction/update/insex')
const selectIntroductionId = require('./introduction/select/insex_id')
const word = require('./pdf/index_word')
const aiNumber = require('./AI/update/insex')
const mbti = require('./mbti/index')
const template = require('./template/insex')
const templateId = require('./template/insex_id')



// 云函数入口函数
exports.main = async (event, context) => {
  switch (event.type) {
    case 'getOpenId':
      return await getOpenId.main(event, context);
    case 'selectCreateResume':
      return await selectCreateResume.main(event, context);
    case 'addPersonalKeyInformation':
      return await addPersonalKeyInformation.main(event, context);
    case 'selectPersonalKeyInformation':
      return await selectPersonalKeyInformation.main(event, context);
    case 'updatePersonalKeyInformation':
      return await updatePersonalKeyInformation.main(event, context);
    case 'addEvaluation':
      return await addEvaluation.main(event, context);
    case 'selectEvaluation':
      return await selectEvaluation.main(event, context);
    case 'updateEvaluation':
      return await updateEvaluation.main(event, context);
    case 'addEducation':
      return await addEducation.main(event, context);
    case 'selectEducation':
      return await selectEducation.main(event, context);
    case 'updateEducation':
      return await updateEducation.main(event, context);
    case 'deleteEducation':
      return await deleteEducation.main(event, context);
    case 'addWorkExperience':
      return await addWorkExperience.main(event, context);
    case 'selectWorkExperience':
      return await selectWorkExperience.main(event, context);
    case 'updateWorkExperience':
      return await updateWorkExperience.main(event, context);
    case 'deleteWorkExperience':
      return await deleteWorkExperience.main(event, context);
    case 'addProject':
      return await addProject.main(event, context);
    case 'selectProject':
      return await selectProject.main(event, context);
    case 'updateProject':
      return await updateProject.main(event, context);
    case 'deleteProject':
      return await deleteProject.main(event, context);
    case 'addQualificationCertificate':
      return await addQualificationCertificate.main(event, context);
    case 'selectQualificationCertificate':
      return await selectQualificationCertificate.main(event, context);
    case 'updateQualificationCertificate':
      return await updateQualificationCertificate.main(event, context);
    case 'deleteQualificationCertificate':
      return await deleteQualificationCertificate.main(event, context);
    case 'pdf':
      return await pdf.main(event,context);
    case 'addEvaluating':
      return await addEvaluating.main(event,context);
    case 'selectEvaluating':
      return await selectEvaluating.main(event,context);
    case 'updateEvaluating':
      return await updateEvaluating.main(event,context);
    case 'selectEvaluatingId':
      return await selectEvaluatingId.main(event,context);
    case 'addIntroduction':
      return await addIntroduction.main(event,context);
    case 'selectIntroduction':
      return await selectIntroduction.main(event, context);
    case 'updateIntroduction':
      return await updateIntroduction.main(event,context);
    case 'selectIntroductionId':
      return await selectIntroductionId.main(event,context);
    case 'word':
      return await word.main(event,context);
    case 'aiNumber':
      return await aiNumber.main(event,context);
    case 'mbti':
      return await mbti.main(event,context);
    case 'template':
      return await template.main(event,context);
    case 'templateId':
      return await templateId.main(event,context);
  }
};
        
